<template>
  <div>
    <button @click="show = false">app里控制my-son死亡</button>
    <my-son v-if="show"/>
  </div>
</template>

<script>
import MySon from './components/MySon.vue'
export default {
  components: {
    MySon
  },

  data() {
    return {
      show: true
    }
  },
}
</script>

<style></style>
